import http from "../utils/request"


// 获取小说分类
export function getBookType(data) {
	return http.request({
		url: '/api/common/getBookType',
		method: 'post',
		data
	})
}

// 检查版本更新
export function verionUpdate(header) {
	return http.request({
		url: '/api/versionUpdate',
		method: 'post',
		header
	})
}


// 发送验证码
export function sendMailCode(data){
	return http.request({
		url: '/api/common/sendMailCode',
		method: 'post',
		data
	})
}

// 验证验证码
export function checkMailCode(data){
	return http.request({
		url: '/api/common/checkMailCode',
		method: 'post',
		data
	})
}